package cn.edu.hncst.dao;

import java.util.List;

public interface BaseDao {
    <T> List<T> queryAll();
    <T> List<T> queryAll(String sql);
    <T> T queryById(Integer id);
    <T> int addObject(T t);
    <T> int updateObject(T t, Integer id);
    int deleteById(Integer id);   //根据id删除
    int[] deleteByIds(String... id); //批量删除
    int delete();
}
